package cn.edu.ctbu.datajpa01.domain.repository;

import cn.edu.ctbu.datajpa01.domain.Teacher;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface TeacherRepository extends JpaRepository<Teacher,Integer> {

    List<Teacher> findByTnameLike(String tname);

    Teacher findByTname(String tname);

    public List<Teacher> findByTnoAndPassword(String tno,String password);

}
